package com.yatuhashi.base.device;

import android.app.Activity;
import android.view.WindowManager;

public class SystemUtil {
    public static void setScreenOn(Activity act) {
        act.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    }
    
    public static void resetScreenOn(Activity act) {
        act.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    }
}
